import request from "@/utils/request";
import store from '@/store/index'

// 封装登录接口函数
export const login = (obj) => {
  return request.post('/auth/login', {
    username: obj.username,
    password: obj.password
  })
}

// 封装获取用户信息接口函数
export const getUser = () => {
  return request.get('/auth/currentUser')
}